package edu.gatech.cs4220;

import android.app.Activity;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;

public class EditName extends Activity {
	
	static final String PROFILE_TO_EDIT_PARAM = "profileName";
	static final String PROFILE_SET_TO_UPDATE = "profiles";
	
	private String profile = null;
	private LocationProfileSet profiles = null;
	private EditText newNameBox = null;
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		/*profile = (String)getIntent().getExtras().get(PROFILE_TO_EDIT_PARAM);
		profiles = (LocationProfileSet)getIntent().getExtras().get(PROFILE_SET_TO_UPDATE);
		newNameBox = (EditText)findViewById(R.id.widget139);
		TextView currentTitle = (TextView)findViewById(R.id.widget140);
		currentTitle.setText(profile);*/
		setContentView(R.layout.editname);
	}
	
	public void saveButton()
	{
		/*String newName = newNameBox.getText().toString();
		if(newName == null || newName.equals(""))
			//FIXME Display error that blank names are not allowed
		if(profiles.containsProfileName(newName))
			//FIXME Display error that a profile with this name already exists
		profiles.renameProfile(profile, newName);
		//FIXME close this view*/
	}
	public void cancelButton()
	{
		finish();
	}
}
